package com.liang.util.action;

import org.apache.struts2.ServletActionContext;
import org.springframework.stereotype.Controller;

import com.liang.log.Log;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author pjt
 * 起跳转作用
 */
@Controller
public class ForwardAction extends ActionSupport {

	@Override
	public String execute() throws Exception {
		Log.info("进入跳转中心开始跳转");
		return "SYS.FORWARD.SUCCESS";
	}

	public String exit() throws Exception{
		ServletActionContext.getRequest().getSession().removeAttribute("SYSUser");
		Log.info("退出系统");
		return "SYS.FORWARD.EXIT";
	}
}
